<style>
	#header {
	    /*position: absolute;*/
	    /* left: 0; */
	    /*top: 50px;*/
	    z-index: 999;
	    height: 43px;
	    /*margin-right: auto;
	    margin-left: auto;*/
	    overflow: hidden;
	    /* background: #fdfdfc; */
	    font: 12px/40px hiragino sans gb, microsoft yahei, simsun;
	    /* box-shadow: 3px 3px 3px rgb(202 202 202 / 20%); */
	    /* background-color: #f5f7f8; */
	}
	.curs_ss {
	    color: #72a0aa !important;
	    font-size: 12px !important;
	    font-family: PingFangSC-Semibold, PingFang SC;
	    font-weight: 600 !important;
	    border-bottom: 3px solid #343434;
	    width: 20px;
	    border-radius: 3px;
	    position: absolute;
	    bottom: -18px;
	    left: 50%;
	    transform: translate(-50%, 0);
	}
	
	.dplayer-controller .dplayer-icons .dplayer-setting {
	    display: none;
	}

	.dplayer-controller .dplayer-icons .dplayer-time, .dplayer-controller .dplayer-icons .dplayer-live-badge {
        display: none;
    }
    .dplayer.dplayer-mobile .dplayer-controller .dplayer-icons .dplayer-full .dplayer-full-in-icon {
        display: none;
    }
    .dplayer-controller .dplayer-icons.dplayer-icons-left .dplayer-icon {
        display: none;
    }

</style>
<script type="text/javascript">
	
	$(".fuzhi_list").click(function() {
		var id = $(this).data("id");
	  //var content = $("#fuzhis_list_"+id).text();
	  //引入实例化clipboard.js, 注意这里不要用Clipboard而是ClipboardJS
	  var clipboard = new ClipboardJS("#fuzhi_list_"+id);
	  //如果成功复制的话
	  clipboard.on('success', function(e) {
		  console.info('Text:', e.text);
	          //alert("复制成功");
			  layer.msg('复制成功',{time:1000});
	      });
	  //如果复制失败
	  clipboard.on('error', function(e) {
	          alert("复制失败");
	      });
	});

	// 点赞圈子
	$(".tag_quanzan").click(function(){
		 var id = $(this).data("id");
		 $.get("/index.php?is_ajax=1&s=quan&c=show&m=quanzan&id="+id, function(data){
			 dr_cmf_tips(data.code, data.msg);
	        if (data.msg ==="点赞圈子") {
	            $('#module_quanzan_'+id).html(data.data);
	        	$('#tag_quanzan_'+id).html('已赞'
	        	);
	        } else {
	        	$('#module_quanzan_'+id).html(data.data);
	        	$('#tag_quanzan_'+id).html('点赞'
	        	);
	        }
	    }, 'json');
	});

	
	// 加入圈子
	$(".tag_joins").click(function(){
		 var id = $(this).data("id");
		 $.get("/index.php?is_ajax=1&s=quan&c=show&m=cart&id="+id, function(data){
			 dr_cmf_tips(data.code, data.msg);
	        if (data.msg ==="加入圈子") {
				window.location.reload();
	            $('#module_joins_'+id).html(data.data);
	        	$('#tag_joins_'+id).html('<div class="d-shang-30 d-neikuang-5-10 d-beijing-baise d-yuanjiao-20 pull-right d-zitiyanse-hui"> ✓ 已 加</div>'
	        	);
	        } else {
				window.location.reload();
	        	$('#module_joins_'+id).html(data.data);
	        	$('#tag_joins_'+id).html('<div class="d-shang-30 d-neikuang-5-10 d-beijing-baise d-yuanjiao-20 pull-right d-zitiyanse-hei"> + 加 入</div>'
	        	);
	        }
	    }, 'json');
	});
	// 列表加入圈子
	$(".tag_list_joins").click(function(){
		 var id = $(this).data("id");
		 $.get("/index.php?is_ajax=1&s=quan&c=show&m=cart&id="+id, function(data){
			 dr_cmf_tips(data.code, data.msg);
	        if (data.msg ==="加入圈子") {
				window.location.reload();
	            $('#module_joins_'+id).html(data.data);
	        	$('#tag_joins_'+id).html('<div class="d-shang-5 d-neikuang-5-10 d-beijing-baise d-yuanjiao-20 pull-right d-zitiyanse-hui"> ✓ 已 加</div>'
	        	);
	        } else {
				window.location.reload();
	        	$('#module_joins_'+id).html(data.data);
	        	$('#tag_joins_'+id).html('<div class="d-shang-5 d-neikuang-5-10 d-beijing-baise d-yuanjiao-20 pull-right d-zitiyanse-hei"> + 加 入</div>'
	        	);
	        }
	    }, 'json');
	});

	
	$(function () {
	  $('[data-toggle="tooltip"]').tooltip()
	})
    var Mpage=1;

    //滚动显示更多
    var scroll_get = true;  //做个标志,不要反反复复的加载
    $(document).ready(function () {
        $(window).scroll(function () {
            if (scroll_get==true &&  (400 + $(window).scrollTop())>($(document).height() - $(window).height())) {
                scroll_get = false;
                /*layer.msg('内容加截中,请稍候',{time:1000});*/
                dr_ajax_load_more();
            }
        });
    });

    function dr_ajax_load_more(){
        Mpage++;
        $.get('{SITE_URL}index.php?s=api&c=api&m=template&module={MOD_DIR}&tid={$idtid}&jinghua={$jinghua}&name=show-list-data.html&format=json&page='+Mpage+'&'+Math.random(),function(res){
            //$('.footer-cont').hide();
            if(res.code==1){
                if (res.msg.indexOf("</div>") != -1) {
                    $('#content_list').append(res.msg);
                    scroll_get = true;
                } else {
                    layer.msg("已经显示完了",{time:500});
                }
            }else{
                /*layer.msg(res.msg,{time:2500});*/
            }
        }, 'json');
    }
    function dr_zanlist_more(id){
	    $.get('{SITE_URL}index.php?s=api&c=api&m=template&app=quan&name=zan.html&format=json&id='+id,function(res){
	    	$('#zanlist_list_'+id).append(res.msg);
	    }, 'json');	
	}
	// 模块点赞
	$(".tag_zan_list").click(function(){
	    var id = $(this).data("id");
	    $.get("{dr_url_prefix('index.php')}?s=quan&c=son&m=zanlian&id="+id, function(data){
	        dr_cmf_tips(data.code, data.msg.value + data.msg.jifen);
	        if (data.msg.value=="点赞成功") {
	            $('#zanlist_list_'+id).load(location.href+" #zanlist_list_"+id+">*","");
				$('#module_zan_list_'+id).html(data.data);
	        	 $('#tag_zan_list_'+id).html('<img src="{HOME_THEME_PATH}quan/img/zan3.svg" width="24" height="24" class="d-yuanjiao-50 d-div-zuo"/>'
	        	);
	        }else{
	            $('#zanlist_list_'+id).load(location.href+" #zanlist_list_"+id+">*","");
				$('#module_zan_list_'+id).html(data.data);
	        	$('#tag_zan_list_'+id).html('<img src="{HOME_THEME_PATH}quan/img/zan.svg" width="24" height="24" class="d-yuanjiao-50 d-div-zuo"/>');
	
	        }
	    }, 'json');
	});
	//关注
	$(".guanzhu_list").click(function(){
	    var id = $(this).data("id");
	    $.get("{dr_url_prefix('index.php')}?s=huiyuan&c=show&m=friend&uid="+id, function(data){
	        dr_cmf_tips(data.code, data.msg);
	        if (data.data.status==1) {
				window.location.reload();
				$('#module_guanzhu_list_'+id).html(data.data);
	        	$('#guanzhu_list_'+id).html('<div class=" d-beijing-hui d-yuanjiao-20 d-neikuang-5-10 d-div-you d-wenzi-12"><i class="fa fa-check-circle-o"></i> 已关注</div>');
				
	        }else{
				window.location.reload();
				$('#module_guanzhu_list_'+id).html(data.data);
	        	$('#guanzhu_list_'+id).html('<div class=" d-beijing-hui d-yuanjiao-20 d-neikuang-5-10 d-div-you d-wenzi-12">关 注</div>');
	            
	        }
	    }, 'json');
	});
</script>
